package _02_cirdoublyLinkedList;

public class DoubleNode<T> {
    
    // 数据域
    public T data;
    
    // 地址域，prev为前驱结点，next为后继结点
    public DoubleNode<T> prev, next;
    
    public DoubleNode(T data, DoubleNode<T> prev, DoubleNode<T> next) {
        this.data = data;
        this.prev = prev;
        this.next = next;
    }
    
    public DoubleNode() {
        this(null, null, null);
    }

    public String toString() {
        return this.data.toString();
    }
    
}
